home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / DU Folder / Mnu / Sources / Include / MnuPrt.h < prev    next >
Encoding:
Text File  |  1995-10-13  |  1.8 KB  |  65 lines  |  [TEXT/MPS ]

  1. //    Copyright © 1995 Apple Computer, Inc. All rights reserved.
  2. //    Release Version:    $ 1.0 d11 $
  3.  
  4. #ifndef MNUPRT_H
  5. #define MNUPRT_H
  6.  
  7. //=======================================================================
  8. #ifndef _MNUDEF_
  9. #include "MnuDef.h"
  10. #endif
  11.  
  12. // ----- Framework Includes -----
  13. #ifndef FWPART_H
  14. #include "FWPart.h"            // FW_CPart
  15. #endif
  16.  
  17. // ----- Foundation Layer -----
  18. #ifndef FWSTDDEF_H
  19. #include <FWStdDef.h>        // ?
  20. #endif
  21.  
  22. #ifndef FWBNDSTR_H
  23. #include <FWBndStr.h>        // FW_CString
  24. #endif
  25.  
  26. //=======================================================================
  27. class FW_CLASS_ATTR FW_CPart;
  28. class FW_CLASS_ATTR FW_CString;
  29. class FW_CLASS_ATTR FW_CMenuBar;
  30. class FW_CLASS_ATTR FW_CMenuEvent;
  31. class FW_CLASS_ATTR FW_CPresentation;
  32.  
  33. //=======================================================================
  34. class FW_CLASS_ATTR CMnuPart : public FW_CPart {
  35. public:
  36.                         CMnuPart(ODPart* odPart);
  37.     virtual             ~CMnuPart();
  38. // overrides
  39. protected:
  40.     virtual void         Initialize(Environment* ev);
  41.     virtual FW_CFrame*    NewFrame(Environment* ev,
  42.                                  ODFrame* odFrame,
  43.                                  FW_CPresentation* presentation,
  44.                                  FW_Boolean fromStorage);
  45.     virtual FW_Boolean    DoAdjustMenus(Environment* ev,
  46.                                       FW_CMenuBar* menuBar, 
  47.                                       FW_Boolean hasMenuFocus,
  48.                                       FW_Boolean isRoot);
  49.     virtual FW_Boolean    DoMenu(Environment* ev,
  50.                                const FW_CMenuEvent& theMenuEvent);
  51. // new members
  52. public:
  53.     virtual void         MyInitMenus(Environment* ev);
  54.             void         MyGetResourceString(FW_ResourceId multiStringId,
  55.                                                FW_ResourceId stringId,
  56.                                                FW_CString& string);
  57.     static const ODValueType     kPartKind;
  58.     static const ODValueType     kPartUserName;
  59. private:
  60.     FW_CPresentation*    fPresentation;
  61. };
  62.  
  63. //=======================================================================
  64. #endif
  65.